﻿<UserControl x:Class="Wen.UI.NavigationElements.LightView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:Behaviors="clr-namespace:Wen.Core.Behaviors;assembly=Wen.Core"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
             xmlns:Converters="clr-namespace:Wen.Core.Converters;assembly=Wen.Core">
	
	<Expander Header="{Binding Title}">
    <i:Interaction.Behaviors>
      <Behaviors:UniqueExpanderBehavior GroupName="Light" /> 
    </i:Interaction.Behaviors>
		<StackPanel>
			<StackPanel Orientation="Horizontal">
				<CheckBox Content="Enabled" IsChecked="{Binding IsEnabled}" IsThreeState="False" Margin="3 0" />
				<CheckBox Content="Indicator" IsChecked="{Binding IsShowed}"
									Visibility="{Binding IsShowed, FallbackValue={x:Static Visibility.Collapsed}, Converter={x:Static Converters:NullToVisibilityConverter.Instance}}" IsThreeState="False" Margin="8 0 0 0" />
			</StackPanel>
      <HeaderedContentControl Header="Position" Content="{Binding PositionViewModel, FallbackValue={x:Null}}" />
      <HeaderedContentControl Header="Direction" Content="{Binding DirectionViewModel, FallbackValue={x:Null}}" />
    </StackPanel>
	</Expander>
</UserControl>
